<template>
	<view>
		<uv-navbar title="报名成功" bg-color="rgba(0,0,0,.0)" :placeholder='true' leftIconSize="20px"
			leftIconColor="#313C56" :autoBack='true' titleStyle="font-size: 16px;font-weight: 500;color: #313c56;" />
		<scroll-view :scroll-y="true" style=" margin-top: 5px; "
			:style="{ height: $uv.addUnit(scrollHeight), width: $uv.addUnit(screenWidth)}">
			<view class="flex-column flex-items-center">
				<image src="../../static/logo.png" style="width: 164px; height: 124px;"></image>
				<text class="font-18 font-weight-medium" style="color: #313C56; margin-top: 8px;">报名成功</text>
				<text class="font-14 font-weight-regular"
					style="color: #6B7885; margin-top: 4px;">等待BOSS选择合作队友...</text>
				<view class="flex-row-center" style="margin-top: 18px;">
					<view class="enroll-btn flex-row-center">
						组队
					</view>
					<view class="enroll-btn flex-row-center" style="margin-left: 15px;">
						查看任务
					</view>
				</view>
			</view>
			<view style="background-color: white; width: 100%; margin-top: 24px; border-radius: 16px; padding-top: 16px; padding-bottom: 15px;">
				<view class="font-16 font-weight-medium" style="color: #313C56; margin-left: 12px; margin-bottom: 12px;">为您推荐</view>
				<taskItem v-for="(item,index) in [1,1,1,1]" :key="index" />
			</view>
		</scroll-view>
		<toast ref="toast"></toast>
	</view>
</template>

<script>
	import taskItem from "@/components/task-item/task-item.vue"
	export default {
		components: {
			taskItem
		},
		data() {
			return {

			};
		},
		computed: {
			statusBarHeight() {
				const sys = uni.$uv.sys()
				return sys.statusBarHeight
			},
			navbarHeight() {
				return this.statusBarHeight + 44
			},
			screenWidth() {
				const sys = uni.$uv.sys()
				return sys.windowWidth
			},
			pageHeight() {
				const sys = uni.$uv.sys()
				return sys.windowHeight - this.navbarHeight
			},
			scrollHeight() {
				return this.pageHeight - 10
			},
			toolbarHeight() {
				const sys = uni.$uv.sys()
				return sys.safeAreaInsets.bottom + 68
			}
		},
	}
</script>

<style lang="scss">
	.enroll-btn {
		width: 144px;
		height: 36px;
		box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
		border-radius: 8px 8px 8px 8px;
		border: 1px solid #D4D7DB;
		font-size: 14px;
		font-weight: 400;
		color: #313C56;
	}
</style>